﻿@namespace MduiBlazor
@inherits MduiButtonBase

<MduiButton Class="@Classname" Style="@Style" @attributes="@AdditionalAttributes" UseMduiTypo="@UseMduiTypo" ButtonType="@ButtonType"
    Color="@Color" TextColor="@TextColor" Dense="@Dense" Disabled="@Disabled" Href="@Href" Target="@Target" HtmlTag="@HtmlTag"
    DisableRipple="@DisableRipple" DisableRaised="@true" OnClick="@OnClick" Command="@Command"
    CommandParameter="@CommandParameter">
    @if (ChildContent is not null)
    {
        @ChildContent
    }
    else
    {
        <MduiIcon Icon="@Icon" />
    }
</MduiButton>